package com.example.app.view;

import android.content.Context;
import android.graphics.Typeface;
import android.widget.TextView;

/**
 * @author Administrator
 * @Email guoyil199@163.com
 * @version V1.0
 * @Date 2015年7月3日 下午5:30:53
 * @Title <B>Icon Font</B>
 * @Description <pre>todo</pre>
 */
public class EduSohoIconView extends TextView {

	private Context mContext;

	public EduSohoIconView(Context context) {
		super(context);
		mContext = context;
		initView();
	}

	public EduSohoIconView(android.content.Context context,
			android.util.AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
		initView();
	}

	private void initView() {
		Typeface iconfont = Typeface.createFromAsset(mContext.getAssets(),
				"fontawesome.ttf");
		setTypeface(iconfont);
	}
}
